package com.framework.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.framework.entity.sys.SysActiveInfo;
import com.framework.view.SysActiveInfoView;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface SysActiveInfoDao extends BaseMapper<SysActiveInfo> {
    /**
     * 活动详情列表
     * @param params
     * @return
     */
	List<SysActiveInfoView> queryActiveList(Map<String, Object> params);

    /**
     * 活动详情数量
     * @param params
     * @return
     */
	Integer queryActiveCount(Map<String, Object> params);

    /**
     * 新增记录
     * @param sysActiveInfo
     */
	void insertActiveInfo(SysActiveInfo sysActiveInfo);

    /**
     * 根据id查询
     * @param activeInfoId
     * @return
     */
    SysActiveInfo queryActiveInfoById(@Param("activeInfoId") Long activeInfoId);

    /**
     * 根据更新
     * @param sysActiveInfo
     */
    void updateActiveById(SysActiveInfo sysActiveInfo);

    /**
     * 删除
     * @param activeInfoId
     */
    void deleteActiveInfoById(@Param("activeInfoId")Long activeInfoId );

    /**
     * 根据acitveId查询活动详情
     * @param activeId
     * @return
     */
    List<SysActiveInfo> queryActiveInfoListByActiveId(@Param("activeId") Long activeId);

    /**
     *正在进行中的活动详情
     * @param activeId
     * @return
     */
    List<SysActiveInfo> queryOnActiveInfoByActiveId(@Param("activeId")Long activeId);
}
